@extends('layouts.user')
@section('title', '绑定账号')

@section('lift-contaier')
    <div class="box">
        <div class="padding-md">
            @include('include.user.nav', ['ac' => 'binding'])
        </div>
    </div>
@endsection

@section('right-contaier')
    <div class="panel panel-default padding-md">
        <div class="panel-body ">
            <h2>
                <i class="fa fa-cog" aria-hidden="true"></i> 账号绑定设置</h2>
            <hr>
            <div class="alert alert-warning">
                绑定多个第三方账号，允许你使用任意一个第三方账号登录同一个 SourceGames 账号。
            </div>
            <div class="col-sm-3 p-r-0">
                <label class="w100 control-label" style="font-size: 20px"><span class="pull-right"><i class="fa fa-steam p-t-5"></i>&nbsp;Steam:</span></label>
            </div>
            <div class="col-sm-9 p-l-5">
                @if (!empty(Auth::user()->getSteamUser))
                <a class="btn btn-success btn-sm" role="button" href="{{Auth::user()->getSteamUser->profileurl}}">
                    <i class="fa fa-check"></i> 已绑定 [{{Auth::user()->getSteamUser->personaname}}]
                </a>
                    <p class="padding-sm">注册时绑定的账号不允许修改[已绑定]</p>
                @else
                    <a href="{{route('steam.login')}}" class="btn btn-default btn-sm"><i class="fa fa-times"></i>绑定Steam</a>
                @endif
            </div>
        </div>
    </div>
@endsection

@section('js-document')
@endsection